package edu.ucsc.gameAI.conditions;

import edu.ucsc.gameAI.ICondition;
import pacman.game.Game;

public class TimeOfLastGlobalReversal implements ICondition{

	int min;
	int max;

	public TimeOfLastGlobalReversal(int min, int max) {
		this.min = min;
		this.max = max;
	}

	public boolean test(Game game) {
		return min < game.getTimeOfLastGlobalReversal() && max > game.getTimeOfLastGlobalReversal();
	}

}
